//求100之内的素数(1是不是素数?)
public class Program27 {
    public static void main(String[] args) {
        int sum = 0;
        loop:for (int i = 2; i < 101; i++) {
            for (int j = 2; j <= i/2; j++) {
                if (i%j == 0){continue loop;}
            }
            sum += i;
        }
        System.out.println(sum);
    }
}